package com.moss.cloud.base.api.model.from;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class SysDictFrom implements Serializable {
    private Long id;
    /** 父级ID */
    @NotNull(message = "字典父级ID不能为空")
    private Long parentId;
    /** 字典分组 */
    @NotBlank(message = "字典分组不能为空")
    @Size(max = 32,message = "字典分组不能超过32个字符")
    private String dictGroup;
    /** 字典KEY */
    @NotBlank(message = "字典KEY不能为空")
    @Size(max = 32,message = "字典KEY不能超过32个字符")
    private String dictKey;
    /** 字典名称 */
    @NotBlank(message = "字典名称不能为空")
    @Size(max = 100,message = "字典名称不能超过100个字符")
    private String dictName;
    /** 字典值 */
    @NotBlank(message = "字典值不能为空")
    @Size(max = 100,message = "字典值不能超过100个字符")
    private String dictValue;
    /** 字典说明 */
    @Size(max = 300,message = "字典说明不能超过300个字符")
    private String dictDesc;
}
